package com.haixiaoke.saas.lock.domain;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;


/**
 * 房间锁信息对象 biz_house_lock
 *
 * @author qixi
 * @date 2024-07-25
 */
@Data
public class HouseLock extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 锁状态:1正常 2冻结
     */
    public static final String LOCK_STATE_NORMAL = "1";
    public static final String LOCK_STATE_FROZEN = "2";


    /**
     * 锁id
     */
    private Long lockId;

    /**
     * 品牌id
     */
    @Excel(name = "品牌id")
    @NotNull(message = "品牌id不能为空")
    private Long brandId;

    /**
     * 品牌名称
     */
    @Excel(name = "品牌名称")
    @NotNull(message = "品牌名称不能为空")
    private String brandName;

    /**
     * 型号id
     */
    @NotNull(message = "型号id不能为空")
    @Excel(name = "型号id")
    private Long modelId;

    /**
     * 产品型号
     */
    @Excel(name = "产品型号")
    @NotNull(message = "产品型号不能为空")
    private String modelName;

    /**
     * 智能锁MAC
     */
    @Excel(name = "智能锁MAC")
    @NotNull(message = "智能锁MAC不能为空")
    private String mac;

    /**
     * 智能锁名称
     */
    @Excel(name = "智能锁名称")
    @NotNull(message = "智能锁名称不能为空")
    private String lockName;

    /**
     * 房屋Id
     */
    @Excel(name = "房屋Id")
    @NotNull(message = "房屋Id不能为空")
    private String houseId;

    /**
     * 房屋地址
     */
    @Excel(name = "房屋地址")
    private String houseAddress;


    /**
     * 机构名称
     */
    @Excel(name = "机构名称")
    private String tenantName;

    /**
     * 锁状态:1正常 2冻结
     */
    @Excel(name = "锁状态:1正常 2冻结")
    private String lockState;


    /**
     * 密码剩余次数
     */
    @Excel(name = "密码剩余次数")
    private Integer pwdMarginNumber;

    /**
     * 机构状态：0禁用；1启用
     */
    @Excel(name = "机构状态：0禁用；1启用")
    private String tenantStatus;


}
